from django.db import models

# Create your models here.
class Task(models.Model):
    id=models.AutoField(primary_key=True,auto_created=True)
    title=models.CharField(max_length=50)
    description=models.TextField(null=True)
    deadline=models.DateTimeField(auto_now_add=True,null=True)
    priority=models.IntegerField(choices=[(1,'低'),(2,'中'),(3,'高')])
    is_completed=models.BooleanField(default=False)